package org.jeecg.modules.ledgerBaseInfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ledgerBaseInfo.entity.LedgerBaseInfo;
import org.jeecg.modules.ledgerBaseInfo.mapper.LedgerBaseInfoMapper;
import org.jeecg.modules.ledgerBaseInfo.service.ILedgerBaseInfoService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 进出厂运输车辆台账(基本信息表)
 * @Author: jeecg-boot
 * @Date:   2025-09-30
 * @Version: V1.0
 */
@Service
public class LedgerBaseInfoServiceImpl extends ServiceImpl<LedgerBaseInfoMapper, LedgerBaseInfo> implements ILedgerBaseInfoService {

    @Override
    public LedgerBaseInfo getByPlateNo(String plateNo) {
        LambdaQueryWrapper<LedgerBaseInfo> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(LedgerBaseInfo::getPlateNo, plateNo);
        return this.getOne(wrapper);
    }
}
